[X,Y] = meshgrid(-2:.2:2);                     
Z = X .* exp(-X.^2 - Y.^2);
subplot(3,1,1);surf(X,Y);
subplot(3,1,2);surf(X,Y,Z);
subplot(3,1,3);surf(Y);